package cn.neusoft.yp.mapper;

import cn.neusoft.yp.pojo.Order;
import cn.neusoft.yp.pojo.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by gaosheng on 2017/4/27.
 */
public interface OrderMapper {


    void addOrder(Order order);

    void addOrderItem(OrderItem oi);

    List<Order> findOrdersByUid(String uid);
    //根据用户ID查订单列表信息
    List<OrderItem> findOrderItemsByUid(String uid);

    Order findOrder(String id);

    //根据订单ID查订单列表信息
    List<OrderItem> findOrderItems(String id);

    void deleteOrderItems(String id);

    void deleteOrder(String id);

    void updatePaysstate(@Param("id") String r6_order, @Param("paystate") int i);
}
